package com.zhuzg.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    Integer id;
    Integer  goodsId;
    String goodsName;
    BigDecimal unitPrice=new BigDecimal(2);
    Integer buyNum;
    Integer  userId;
    Integer status;
    Date createTime;

    public Order(Integer goodsId, Integer buyNum, Integer userId) {
        this.goodsId = goodsId;
        this.buyNum = buyNum;
        this.userId = userId;
    }
}
